#include<stdio.h>
void handout(int num_candies,int num_people,int ans[])
{
	int currentpeople=0,currentcandies=1;
	while(1)
	{
		if(num_candies-currentcandies>0)
		{
			ans[currentpeople]=ans[currentpeople]+currentcandies;
		    currentpeople=(currentpeople+1)%num_people;
		    num_candies=num_candies-currentcandies;
		    currentcandies++;
		}
		else
		{
			ans[currentpeople]=ans[currentpeople]+num_candies;
			break;
		}
	}
}
int main()
{
	int num_candies,num_people,ans[100]={0};
	scanf("%d",&num_candies);
	scanf("%d",&num_people);
	handout(num_candies,num_people,ans);
	int i;
	for(i=0;i<num_people;i++)
	{
		printf("%d ",ans[i]);
	}
	return 0;
}
